<script>
$(document).ready(function(){
    $("input:radio[name='select-class']").click(function(){
        var id = $(this).attr('value');
        $(".select-radio").removeClass('select-radio');
        $(this).parent().addClass('select-radio');
        $.get('<?php echo $this->route("get-students")?>',{
            class_sn :id,
            semesterSn : <?php echo $this->semesterSn?>
            },
            function(data){
                $("#students").html(data);
            });
     });

});
</script>
<table class="listTable class_select" >
<tr>
<th>
<?php foreach($this->className as $id=>$val):?>
<span>
<input id="class-<?php echo $id?>" type="radio" name="select-class" value="<?php echo $id?>" />
<label for="class-<?php echo $id?>"><?php echo $val?></label> &nbsp;
</span>
<?php endforeach;?>
</th>
</tr>
</table>
<div id="students">
</div>